package com.sg.bean;

/**
 * @author zh
 * 订单商品关系实体类
 */
public class ComandOrder {

    /**
     * 关系编号
     */
    private int coId;

    /**
     * 购买数量
     */
    private int coNumber;

    /**
     * 总价
     */
    private int coPrinces;

    /**
     * 订单编号
     */
    private int orderId;

    /**
     * 商品编号
     */
    private int comId;

    public ComandOrder() {
    }

    public ComandOrder(int coId, int coNumber, int coPrinces, int orderId, int comId) {
        this.coId = coId;
        this.coNumber = coNumber;
        this.coPrinces = coPrinces;
        this.orderId = orderId;
        this.comId = comId;
    }

    @Override
    public String toString() {
        return "ComandOrder{" +
                "coId=" + coId +
                ", coNumber=" + coNumber +
                ", coPrinces=" + coPrinces +
                ", orderId=" + orderId +
                ", comId=" + comId +
                '}';
    }

    public int getCoId() {
        return coId;
    }

    public void setCoId(int coId) {
        this.coId = coId;
    }

    public int getCoNumber() {
        return coNumber;
    }

    public void setCoNumber(int coNumber) {
        this.coNumber = coNumber;
    }

    public int getCoPrinces() {
        return coPrinces;
    }

    public void setCoPrinces(int coPrinces) {
        this.coPrinces = coPrinces;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getComId() {
        return comId;
    }

    public void setComId(int comId) {
        this.comId = comId;
    }
}
